home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4539 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.1 KB

  1. Path: citicorp.com!mgrant-pc
  2. From: mike.grant@citicorp.com (Mike Grant)
  3. Newsgroups: comp.lang.c++
  4. Subject: REQUEST FOR HELP- UNUSUAL MEMORY LEAK!!!
  5. Date: Tue, 30 Jan 96 21:56:04 GMT
  6. Organization: Citicorp
  7. Message-ID: <4em45k$kjc_001@nagf.us-ny.citicorp.com>
  8. NNTP-Posting-Host: mgrant-pc.nagf.us-ny.citicorp.com
  9. X-Newsreader: News Xpress Version 1.0 Beta #3
  10.  
  11. I need help with an unusual memory leak in a program
  12. which I have developed.  It seems to occur upon entry into 
  13. member functions in a derived string class.  The leak is 
  14. unusual in that the memory lost is always 4096 bytes.
  15. I have no dynamically allocated memory of this size.
  16.  
  17. My questions are as follows:
  18.  
  19. Is there any implicit overhead when using C++ classes?
  20. Especially derived ones? 
  21.  
  22. Overhead that might cause extreme heap allocation
  23.  "behind the scenes" that is not directly related to 
  24. a program's explicit dynamic memory allocation 
  25. requests? 
  26.  
  27. The leak appears to be compiler independent.  Could this be a 
  28. design flaw of some sort?  As opposed to improper memory handling
  29. on my part.
  30.  
  31. Any responses, help or even speculation would be deeply appreciated.
  32.  
  33. Thanks in advance...
  34.  
  35. mike.grant@citicorp.com
  36.